package com.tul.exercise.base.fanclass.eg2;

/**
 * @Description 《java编程思想》15 泛型.1 示例 3
 *  元组类 ：3个长度的元组
 *
 **/
public class ThreeTuple<A, B, C> extends TwoTuple<A, B> {
    public final C third;

    public ThreeTuple(A a, B b, C c) {
        super(a, b);
        this.third = c;
    }

    public String toString() {
        return "(" +  first + ", " + second + ", " + third + ")";
    }
}
